<div ms-controller="addMess" class="addMess">
	<div class="addMessTop clearfix">
		<h2 class="title" ms-if="title_tag"><a href="#!/pushList/pushList">推送管理</a>新增推送消息</h2>
		<h2 class="title" ms-if="!title_tag"><a href="#!/pushList/pushList">推送管理</a>查看推送消息</h2>
		<div class="titleNext">
			<h1>消息名称：</h1>
			<input class="ipt" type="text" placeholder="请输入推送公告名称" ms-duplex="title"/>
			<p>
				! 不超过30字符
			</p>
		</div>
		<div class="titleCenter">
			<h1>选择分类：</h1>
			<select class="selectSize" ms-duplex="select" data-duplex-changed="selectchange" class="ipt2">
				<option value="2"><label>系统消息</label></option>
				<option value="1"><label>详情链接</label></option>
			</select>
		</div>
		<div class="txt" ms-if = "select == 2">
			<h1>健康要闻正文：</h1>
			<textarea class="txtContent" maxlength="600" ms-duplex="content"></textarea>
			<p class="p">600</p>
		</div>
		<div class="link" ms-if = "select == 1">
			<h1>选择连接：</h1>
			<input type="text" class="selectSize select" value="选择指向链接" ms-click="openList"> 
			<div class="linkCon">
				<div class="linkHead">
					<ul>
						<li ms-click="toggle(0,3)" ms-class="{{targetType == 3? 'current':''}}" ms-click='zixunList'>资讯</li>
						<li ms-click="toggle(1,1)" ms-class="{{targetType == 1? 'current':''}}" ms-click='doctorList'>专家</li>
						<li ms-click="toggle(2,4)" ms-class="{{targetType == 4? 'current':''}}" ms-click='deviceList'>设备</li>
					</ul>
					<input type="text" class="input" placeholder="请输入搜索内容"/>
					<button class="btn1">搜索</button>
				</div>
				<table class="table ms-tabs" ms-if="targetType == 3" >
					<thead>
						<tr>
							<th>ID</th>
							<th>资讯名称</th>
							<th>&nbsp;</th>
						</tr>
					</thead>
					<tbody>
						<tr ms-repeat="news">
							<td>{{el.id}}</td>
							<td>{{el.title}}</td>
							<td><input type="radio" name="targetId" ms-duplex-string="targetId" ms-value="el.id"/></td>
						</tr>
					</tbody>
				</table>
				<table class="table table-striped  ms-tabs" ms-if="targetType == 1" >
					<thead>
						<tr>
							<th>ID</th>
							<th>专家名称</th>
							<th>&nbsp;</th>
						</tr>
					</thead>
					<tbody>
						<tr ms-repeat="doctors">
							<td>{{el.id}}</td>
							<td>{{el.name}}</td>
							<td><input type="radio"  name="targetId" ms-duplex-string="targetId" ms-value="el.id"/></td>
						</tr>
					</tbody>
				</table>
				<table class="table table-striped  ms-tabs" ms-if="targetType == 4">
					<thead>
						<tr>
							<th>ID</th>
							<th>设备名称</th>
							<th>&nbsp;</th>
						</tr>
					</thead>
					<tbody>
						<tr ms-repeat="device">
							<td>{{el.id}}</td>
							<td>{{el.name}}</td>
							<td><input type="radio" name="targetId" ms-duplex-string="targetId" ms-value="el.id"/></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div class="titleBtn">
			<button class="btnAdd" ms-click="saveOrUpdate">
				发布
			</button>
			<button ms-click="backList">
				取消
			</button>
		</div>
	</div>
</div>